﻿/*****************************************************************
 * Copyright (C) Newegg Corporation. All rights reserved.
 * 
 * Author       :  Bill Li (Bill.S.Li@newegg.com)
 * Create Date  :  
 * Usage        :  
 *
 * RevisionHistory
 * Date         Author               Description
 * 
*****************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Framework.Logging;

namespace TemplateEngine
{
    internal static class TemplateLogger
    {
        internal static void Debugger(string msg)
        {
            Log.Logger.Debug(msg);
        }

        internal static void Info(string msg)
        {
            Log.Logger.Info(msg);
        }

        internal static void Error(Exception ex)
        {
            Log.Logger.Debug(ex.ToString());
        }

        internal static void Warning(string msg)
        {
            Log.Logger.Warn(msg);
        }

        /// <summary>
        /// 性能测试用日志接口
        /// </summary>
        /// <param name="msg"></param>
        internal static void LoadLogging(string msg)
        {
            string time = DateTime.Now.ToLongTimeString();
            Log.Logger.Debug(msg + ";执行时间：" + time);
        }
    }
}
